﻿#include "servicecenter.h"

#include <QGlobalConfig>
#include <QDir>
#include <QCoreApplication>
#include <spectrumplaybackwebsocketserver.h>


ServiceCenter::ServiceCenter(QObject *parent) : QObject(parent)
{
    QGlobalConfig::getInstance().init(QCoreApplication::applicationDirPath() + "/" + QCoreApplication::applicationName() + ".ini");
    SpectrumPlaybackWebSocketServer::getInstance();
}

ServiceCenter::~ServiceCenter()
{
    SpectrumPlaybackWebSocketServer::deleteInstance();
    QGlobalConfig::deleteInstance();
}
